package com.example.netty.callback;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.timeout.IdleState;

/**
 * Created by l.wang on 2018/3/28.
 */
public interface SampleLongConnectEventCallback {

    void onConnectionCreated(ChannelHandlerContext channelHandlerContext);

    void onConnectionClosed(ChannelHandlerContext channelHandlerContext);

    void onConnectionIdle(IdleState idleState, ChannelHandlerContext channelHandlerContext);

    void onRead(ChannelHandlerContext channelHandlerContext, Object msg);
}
